import Vue from 'vue';
import VueI18n from 'vue-i18n';

Vue.use(VueI18n);

const messages = {
    en: {
        welcome: 'Welcome',
        login: 'Login',
        logout: 'Logout',
        address: 'Address',
        password: 'Password',
        phone: 'Phone',
        postion: 'postion',
        message: 'message',
        clippingBoard: 'clippingBoard',
        payment:'payment',
        serve:'serve',
        evaluate:'evaluate',
        clean:'clean',
        multilingual: 'multilingual',
        setting: 'setting',
        chinse: 'chinse',
        user:'user',
        about: 'about',
        privacy: 'privacy',
        documents: 'documents',
        count: 'count',
        lose:'lose',
        userCancel:'userCancel',
        driverCancel:'driverCancel',
        complaints:'complaints',
        contact:'contact',
        failed:'failed',
        safe:'safe',
        invoice:'invoice',
        mileage:'mileage',
        // Add more translations here
    },
    zh: {
        welcome: '欢迎',
        login: '登录',
        logout: '注销',
        address: '常用地址',
        password: '修改密码',
        phone: '修改手机号',
        postion: '定位功能',
        message: '消息通知',
        clippingBoard: '手机剪贴板权限',
        payment:'免密支付开启',
        serve:'服务协议与规则',
        evaluate:'给我们评价',
        clean:'清理',
        multilingual: '多语言/Language',
        setting: '设置',
        chinse: '中文',
        user:'用户指南',
        about: '关于我们',
        privacy: '隐私协议',
        documents: '证照信息',
        count: '计价规则',
        lose:'乘客遗失物品',
        userCancel:'乘客取消订单',
        driverCancel:'司机取消订单',
        complaints:'订单投诉',
        contact:'联系不上对方怎么办',
        failed:'什么情况无法发布订单',
        safe:'安全功能',
        invoice:'发票与收据',
        // Add more translations here
        mileage:'里程',
    }
};

const i18n = new VueI18n({
    locale: 'zh', // set default locale
    messages, // set locale messages
});

export default i18n;